using DbEntities.Entities;
using FluentNHibernate.Mapping;

namespace DbEntities.Mappings
{
    public class SubscriptionMap : ClassMap<Subscription>
    {
        public SubscriptionMap()
        {
            Id(x => x.SubscriptionId).GeneratedBy.Native();
            References(x => x.SubscribedBy);
            References(x => x.PublishedBy);
            References(x => x.MessageAssembly);
            Map(x => x.MessageType);
        }
    }
}